.class Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;
.super Ljava/lang/Thread;
.source "SimplePopNoteEditor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "r"
.end annotation


# instance fields
.field private a:Ljava/lang/Object;

.field public b:Z

.field final synthetic c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    .line 2
    new-instance p1, Ljava/lang/Object;

    invoke-direct {p1}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    const/4 p1, 0x1

    .line 4
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    return-void
.end method

.method public b()V
    .locals 2

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    monitor-enter v0

    .line 3
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    .line 4
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public run()V
    .locals 4

    .line 1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->A(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->D(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    monitor-enter v0

    .line 4
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    const-wide/16 v2, 0x64

    invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v1

    goto :goto_4

    :catch_0
    move-exception v1

    .line 5
    :try_start_1
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 6
    :goto_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 7
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    if-eqz v0, :cond_3

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v0

    const/4 v1, 0x0

    .line 9
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    if-gez v0, :cond_2

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ProgressThread invalid progress"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 11
    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->c:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->i(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/SeekBar;

    move-result-object v1

    new-instance v2, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r$a;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r$a;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;I)V

    invoke-virtual {v1, v2}, Landroid/widget/SeekBar;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    .line 12
    :cond_3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    monitor-enter v1

    .line 13
    :try_start_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a:Ljava/lang/Object;

    invoke-virtual {v0}, Ljava/lang/Object;->wait()V
    :try_end_2
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_2

    :catchall_1
    move-exception v0

    goto :goto_3

    :catch_1
    move-exception v0

    .line 14
    :try_start_3
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 15
    :goto_2
    monitor-exit v1

    goto :goto_0

    :goto_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    throw v0

    .line 16
    :goto_4
    :try_start_4
    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    throw v1

    :cond_4
    return-void
.end method
